package com.zhiyou100.service;

import java.util.ArrayList;
import java.util.Date;

import com.zhiyou100.model.User;

public interface UserService {
	
	//1.根据手机号获取验证码发送结果
	public int sendCode(String phone);
	
	//2.使用验证码登录
	User loginByPhoneAndCode(String phone,int code);
	
	//3.使用密码登录
	User loginByPhoneAndPassword(String phone,String password);
	
	//4.根据电话号码和id获取用户信息
	User getUserByphoneAndId(String phone,Integer id);
	
	//5.根据id更新用户信息
	void update(User user);

}
